-- GENERATED SPELL FOR [Snaplasher] --


function spell0_32916(pUnit, Event) --@Hardened Bark,Self--
pUnit:FullCastSpellOnTarget(62664,pUnit)
pUnit:RegisterEvent('Sorts_32916', 632, 1)
end

function spell1_32916(pUnit, Event) --@Hardened Bark,Self--
pUnit:FullCastSpellOnTarget(64191,pUnit)
pUnit:RegisterEvent('Sorts_32916', 524, 1)
end

function Sorts_32916(pUnit, Event)
local choix_sorts_32916 = math.random(0, 1)
if choix_sorts_32916 == 0 then
pUnit:RegisterEvent('spell0_32916', 1, 1)
end
if choix_sorts_32916 == 1 then
pUnit:RegisterEvent('spell1_32916', 1, 1)
end
end

function mob32916_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32916', math.random(1500, 3000), 1)
end

function mob32916_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32916_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32916_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32916, 1, 'mob32916_Action')
RegisterUnitEvent(32916, 2, 'mob32916_Leave')
RegisterUnitEvent(32916, 3, 'mob32916_Kill')
RegisterUnitEvent(32916, 4, 'mob32916_Die')
